package com.ttn.common.core.entity.studentrecord;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 点赞记录表
 */
@Data
@TableName(value = "like_record")
public class LikeRecord implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 学习总记录id
     */
    @TableField(value = "study_record_id")
    private Integer studyRecordId;

    /**
     * 点赞人
     */
    @TableField(value = "liker_id")
    private Integer likerId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_STUDY_RECORD_ID = "study_record_id";

    public static final String COL_LIKER_ID = "liker_id";

    public static final String COL_CREATE_TIME = "create_time";
}